DefaultBluetoothMonitor

Default BluetoothMonitor for the JS family. Web Bluetooth's powered-on/adapter state is only available asynchronously (navigator.bluetooth.getAvailability()), so this uses the presence of the Web Bluetooth API as a synchronous proxy for "enabled" — sufficient to gate the scanner, which surfaces the real availability when the user opens the device picker.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val isEnabled: Flow<Boolean>
Link copied to clipboard
open override val isServiceEnabled: Boolean

Functions

Link copied to clipboard
override fun startMonitoring()
Link copied to clipboard
override fun stopMonitoring()